<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page isELIgnored ="false" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="page" uri="/eaglet/mvcpager" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
        <base href="<%=basePath%>">
		<meta charset="UTF-8">
		<title>分页演示</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/base.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/mvcpager.css"/>
	</head>
	<body>
		<table border="1" cellspacing="0" cellpadding="0">
			<tr>
				<th>id</th>
				<th>用户名</th>
				<th>操作</th>
			</tr>
			<c:forEach var="user" items="${list}">
			<tr>
				<td><c:out value="${user.customer_id }"></c:out>  </td>
				<td><c:out value="${user.customer_name }"></c:out></td>
				<td>操作</td>
			</tr>
			</c:forEach>
		</table>
		<form method="post" id="searchForm" action="<%=path%>/list">
			<input type="hidden" name="searchInfo" value="${searchInfo}">
		</form>
		<page:createPager pageSize="${pageSize}" totalPage="${totalPage}"
			totalCount="${totalCount}" curPage="${pageNum}" formId="searchForm" />
	</body>
</html>
